{yun:}include file="$wapstyle/header_cont.htm"{/yun}

<div class="clear"></div>
<div class="qqconnect_box">
	<div class="qqconnect_box_pic"><img width="100px;" height="100px;" src="{yun:}$smarty.session.wx.pic{/yun}"></div>
	<div class="qqconnect_box_p">{yun:}$smarty.session.wx.nickname{/yun}</div>
	<div class="qqconnect_box_p" style="padding-top:5px;">尊敬的微信用户</div>
	<div class="qqconnect_box_p_tip">请关联一个{yun:}$config.sy_webname{/yun}账号，便于您下次快速登录</div>
	<div class="qqconnect_box_list_box">
		<div class="qqconnect_box_list">
			<input type="text" id="username" value="" class="qqconnect_box_text" placeholder="用户名/邮箱/手机号">
		</div>
		<div class="qqconnect_box_list">
			<input type="password" id="password" value="" class="qqconnect_box_text" placeholder="密码"></div>
		<div class="qqconnect_box_bth">
			<input type="button" value="绑定我的账户" onclick="binduser('{yun:}url m=wap c=wxconnect a=wxbind{/yun}');" class="qqconnect_box_sumit">
		</div>
		<div class="qqconnect_box_bth2"> 
			<input type="button" value=" 注册新账户" class="qqconnect_box_sumit2" onclick="window.location.href='{yun:}url m=wap c=register{/yun}'" />
		</div>
		<input type="hidden" id="wxoauth" value="{yun:}$smarty.get.wxoauth{/yun}"/>
	</div>
</div>

<style>
	body {background: #fff}
</style>
<script src="{yun:}$wap_style{/yun}/js/prefixfree.min.js?v={yun:}$config.cachecode{/yun}" language="javascript"></script>
<script src="{yun:}$config.sy_weburl{/yun}/js/jquery-1.8.0.min.js?v={yun:}$config.cachecode{/yun}" language="javascript"></script>
<script src="{yun:}$wap_style{/yun}/js/layer/layer.m.js?v={yun:}$config.cachecode{/yun}" language="javascript"></script>
<script src="{yun:}$wap_style{/yun}/js/public.js?v={yun:}$config.cachecode{/yun}" language="javascript"></script>
<script>
	var wapurl = "{yun:}url m=wap{/yun}";
	// 判断安卓物理返回键,从wxoauth来的,返回首页;其他的正常返回
	var u = navigator.userAgent;
    var isAndroid = u.indexOf('Android') > -1 || u.indexOf('Adr') > -1; //android终端

    if(isAndroid) {
		$(function(){
			var wxoauth = $('#wxoauth').val();
			history.pushState(null, null, location.href);
			window.addEventListener('popstate', function(event) {
				history.pushState(null, null, location.href);
				if(wxoauth == '1'){
					location.href = wapurl;
				}else{
					window.history.go( -1 );
				}
			});
		})
	}
</script>
{yun:}include file="$wapstyle/footer.htm"{/yun}
